﻿using SHKF.B2C.Model.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SHKF.B2C.MeiTuanShanGou.Model.Entity.Order
{
    [SugarTable("OrderFormDetail")]
    public class OrderDetailEntity : BaseEntity
    {

        public long item_id { get; set; }

        public long FKSN { get; set; }

        /// <summary>
        /// 商品现价，单位是元
        /// </summary>
        public decimal actual_price { get; set; }

        /// <summary>
        /// 商品原价，单位是元
        /// </summary>
        public decimal original_price { get; set; }

        /// <summary>
        /// APP方商品id，即商家中台系统里商品的编码 
        /// 平台建议商家对接此字段
        /// </summary>
        public string app_medicine_code { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string product_name { get; set; }


        /// <summary>
        /// 商品的UPC码信息
        /// </summary>
        public string upc { get; set; }

        /// <summary>
        /// 订单中此商品sku的购买数量
        /// </summary>
        public int qty { get; set; }

        /// <summary>
        /// 商品单价，单位是元
        /// </summary>
        public decimal price { get; set; }

        /// <summary>
        /// 订单中当前商品sku需使用包装盒的总数量
        /// </summary>
        public float box_num { get; set; }


        //包装盒单价，单位是元
        public float box_price { get; set; }

        /// <summary>
        /// 商品售卖单位
        /// </summary>
        public string unit { get; set; }

        /// <summary>
        /// 商品折扣系数，目前此字段默认为1，商家无需参考此字段的信息。
        /// </summary>
        public float food_discount { get; set; }


        /// <summary>
        /// 商品重量：单位是克/g
        /// </summary>
        public long weight { get; set; }

        /// <summary>
        /// 重量单位
        /// </summary>
        public string weight_unit { get; set; }

        public long ProductSN { get; set; }
    }
}
